/***
 * Excerpted from "Stripes: and Java Web Development is Fun Again",
 * published by The Pragmatic Bookshelf.
 * Copyrights apply to this code. It may not be used to create training material, 
 * courses, books, articles, and the like. Contact us if you are in doubt.
 * We make no guarantees that this code is fit for any purpose. 
 * Visit http://www.pragmaticprogrammer.com/titles/fdstr for more book information.
***/
/* contact_list.js */

function filterContacts(field, url) {
  $.get(url,
    { 'filter': $(field).val(),
      '_eventName': 'findByName'
    },
    function(data) {
      $('#contact_table').html(data);
    }
  );
}


function ajaxLink(link, update) {
  $.get(link, function(data) {
    $(update).html(data);
    $(update).show();
  });
  return false;
}

